package tw.com.softleader.spring.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import tw.com.softleader.spring.entity.Movie;

@Repository
public class MovieDao {
	public List<Movie> findAll(){
		List<Movie> lists = new ArrayList<>();
		
		Movie mov = new Movie();
		mov.setId(Long.valueOf(1));
		mov.setName("Soft");
		
		Movie mov2 = new Movie();
		mov2.setId(Long.valueOf(2));
		mov2.setName("Soft2");
		
		lists.add(mov);
		lists.add(mov2);
		
		return lists;
	}
}
